|
|
|
|
|
|
|
Figure 11.9
The Components dialog box lets
you add controls to your project. |
|
|
|
|
|
|
|
|
You could rebuild the form or rewrite the procedure for each program, but that would be a very inefficient way to do your program development. A better way is to reuse modules and forms that have been previously developed and fully tested. |
|
|
|
|
|
|
|
|
Getting these modules and forms into your current project is a simple process. By selecting Project, Add File, you bring up the Add File dialog box (see Figure 11.10). This dialog box lets you locate and select files to be added to your current project. Unfortunately, the Add File dialog box lets you add only a single file at a time. Therefore, if you have multiple files to add, you must repeat the operation several times. |
|
|
|
|
CAUTION
|
|
|
|
|
If you add the same form or module to separate projects, remember that changing functions in the module affects all projects that use it. If you are about to change a shared module radically, use the Save modulename As option in the File menu or copy the module to another subdirectory first. |
|
|
|
|
|
|
|
|
|
|
Figure 11.10
The Add File dialog box can be accessed from
the menu system, standard toolbar, by right-
clicking in the Project window, or by pressing Ctrl+D. |
|
|
|
|
|
|
|
|
|
Files with the .FRM and .FRX extensions are form files. Files with the .BAS extension are module files.  |
|
|
|
|
|
|
|